package com.freeseed.model.service;

import com.freeseed.model.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UserDetailsService;
import org.springframework.security.core.userdetails.UsernameNotFoundException;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Allwayz
 * @since 2020-03-20
 */
public interface IUserService extends IService<User> {
    /**
     * 个性化验证登录
     * @param email 账号
     * @param password 原始密码
     * @return
     */
    boolean checkLogin(String email,String password) throws Exception;

    /**
     * 注册
     * @param email
     * @param password
     * @return
     * @throws Exception
     */
    boolean register(String email,String password,String role) throws Exception;
}
